package cn.autumnorange.app.common.core.treeservice;

import cn.autumnorange.app.common.core.IDTypeService;

import java.io.Serializable;
import java.util.TreeSet;

/**
 * 树形类接口
 *
 * @param <E>
 * @param <PARENTID>
 */
public interface TreeClassService<E, PARENTID extends Serializable> extends IDTypeService<PARENTID> {
    PARENTID getParentId();

    void setParentId(PARENTID parentId);

    TreeSet<E> getChildren();

    void setChildren(TreeSet<E> children);

    int getSort();

    void setSort(int sort);

    //    UpDownTreeEntityService<E> getUpDownTreeEntityService();
}
